package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 011.商品spu表
 * </p>
 *
 * @author admin
 * @since 2020-09-10
 */
@TableName("info_spu")
public class InfoSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 市场编号
     */
//    @TableField("MarkCode")
//    private Integer markCode;

    /**
     * 商户类型 2=果农
3=分拣厂
4=农资厂
5=包装物厂
     */
    @TableField("BuisType")
    private Integer buisType;

    /**
     * 商户Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 标题
     */
    @TableField("SpuTitle")
    private String spuTitle;

    /**
     * 介绍
     */
    @TableField("SpuDesc")
    private String spuDesc;

    /**
     * 是否上架 0=否
1=是
     */
    @TableField("Saleable")
    private Integer saleable;

    /**
     * 是否有效 0=否
1=是
     */
    @TableField("Valid")
    private Integer valid;

    /**
     * 删除标记 0=否
1=是
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 更新版本号 更新数据版本号
     */
    @TableField("UpdateVer")
    private Integer updateVer;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 权重
     */
    @TableField("Weight")
    private Integer weight;

    /**
     * spu评分 最高5分
     */
    @TableField("SpuStar")
    private Integer spuStar;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
//    public Integer getMarkCode() {
//        return markCode;
//    }
//
//    public void setMarkCode(Integer markCode) {
//        this.markCode = markCode;
//    }
    public Integer getBuisType() {
        return buisType;
    }

    public void setBuisType(Integer buisType) {
        this.buisType = buisType;
    }
    public Long getBusiId() {
        return busiId;
    }

    public void setBusiId(Long busiId) {
        this.busiId = busiId;
    }
    public String getSpuTitle() {
        return spuTitle;
    }

    public void setSpuTitle(String spuTitle) {
        this.spuTitle = spuTitle;
    }
    public String getSpuDesc() {
        return spuDesc;
    }

    public void setSpuDesc(String spuDesc) {
        this.spuDesc = spuDesc;
    }
    public Integer getSaleable() {
        return saleable;
    }

    public void setSaleable(Integer saleable) {
        this.saleable = saleable;
    }
    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
    public Integer getUpdateVer() {
        return updateVer;
    }

    public void setUpdateVer(Integer updateVer) {
        this.updateVer = updateVer;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    public Integer getSpuStar() {
        return spuStar;
    }

    public void setSpuStar(Integer spuStar) {
        this.spuStar = spuStar;
    }

    @Override
    public String toString() {
        return "InfoSpu{" +
            "id=" + id +
//            ", markCode=" + markCode +
            ", buisType=" + buisType +
            ", busiId=" + busiId +
            ", spuTitle=" + spuTitle +
            ", spuDesc=" + spuDesc +
            ", saleable=" + saleable +
            ", valid=" + valid +
            ", delFlag=" + delFlag +
            ", updateVer=" + updateVer +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", weight=" + weight +
            ", spuStar=" + spuStar +
        "}";
    }
}
